<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    function handle() {
        alert(event.target.value);// 获取当前对象
    }
</script>
<input type="button" value="press me" onclick="handle()"/>
</body>
</html>